package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public interface UserMapper {
    List<User> queryAll();

    User queryById(@Param("id") int id);

    User queryByCondition(@Param("id") int id,@Param("sex") String name);

    long totalCount();

    List<User> queryLike(String name);


    void insert(User user);
    void update(User user);
    void delete(int id);

    List<User> queryByCondition1(Map<String, Object> map);
}
